﻿<%@ Page Language="C#" MasterPageFile="~/SanPham.Master" AutoEventWireup="true" CodeBehind="GioHang.aspx.cs" Inherits="GiaoDien.WebForm3" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="NoiDungChinh" runat="server">
    <div id="content_top"></div>
    <div id="content_middle">
     <h3>Giỏ hàng</h3>
     
     <div class="detail_box">
       <div>
           <asp:Label ID="lblThongBao" runat="server" Text=""></asp:Label>
	    <asp:GridView ID="GrGioHang" runat="server" AutoGenerateColumns="False" Width="100%">
               <Columns>
                   <asp:BoundField DataField="TenSanPham" HeaderText="Tên Sản Phẩm" />
                   <asp:BoundField DataField="SoLuong" HeaderText="Số Lượng" >
                       <ItemStyle HorizontalAlign="Center" />
                   </asp:BoundField>
                   <asp:BoundField DataField="GiaBanQuiDinh" HeaderText="Giá Bán" >
                       <ItemStyle HorizontalAlign="Center" />
                   </asp:BoundField>
                   <asp:TemplateField HeaderText="Thành Tiền">
                       <ItemTemplate>
                           <asp:Label ID="lblThanhTien" runat="server" Text='<%# Int32.Parse(Eval("SoLuong").ToString()) * Int32.Parse(Eval("GiaBanQuiDinh").ToString())+" VNĐ" %>'></asp:Label>
                       </ItemTemplate>
                       <ItemStyle HorizontalAlign="Right" />
                   </asp:TemplateField>
               </Columns>
           </asp:GridView>
           
           <table style="width: 100%">
               <tr>
                   <td>
                       &nbsp;</td>
                   <td>
                       &nbsp;</td>
                   <td width="100px">
                       <font color="#FF0000"><b>Tổng tiền : </b></td>
                   <td width="150px" align="right">
                       <asp:Label ID="lblTongTien" runat="server" Text=""></asp:Label>&nbsp;VNĐ</td>
               </tr>
               <tr>
                   <td>
                       &nbsp;</td>
                   <td>
                       &nbsp;</td>
                   <td width="100px">
                       &nbsp;</td>
                   <td>
                       &nbsp;</td>
               </tr>
           </table>
           
       </div>
	    <div>
    <table width="100%" border="0" cellspacing="2" cellpadding="2">
      <tr align="center" valign="middle">
        <td><label>
            <asp:Button ID="btnTiepTucMuaHang" runat="server" Text="Tiếp tục mua hàng" 
                onclick="btnTiepTucMuaHang_Click" />
        </label></td>
        <td><label>
            <asp:Button ID="btnXoaTatCa" runat="server" Text="Xóa tất cả" 
                onclick="btnXoaTatCa_Click" />
        </label></td>
        <td><label>
            <asp:Button ID="btnThanhToan" runat="server" Text="Thanh toán" 
                onclick="btnThanhToan_Click" />
        </label></td>
      </tr>
           
    </table>
    </div>
      </div>
        
		    <div class="cleaner"></div>
        
      <div class="cleaner"></div>
                
    </div>
<div id="content_bottom"></div>
</asp:Content>
